﻿using System;
using System.Text;
using System.Collections.Generic;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Reflection;

namespace UnitTestProject {
    [TestClass]
    public class FactorySnippet {
        [TestMethod]
        public void Css2Cs() {
            //var x = ".am-titlebar-one .am-titlebar-nav {";
            //var p=@"(?<=\.)[\w\d-]+\s{0,3}(?=\{)";
            //Console.WriteLine(Regex.IsMatch(x,p));
            Gh.GenerateCss2Cs(Configh.Path_Input);
        }
        [TestMethod]
        public void GenerateConfig() {
            //Console.WriteLine(entitypath);//ok
            var entitypath = @"F:\tfs\tfs29\CompoentFactory\Test.Web\bin\Test.Web.dll";//contract path
            var np = "Test";//target namespace
            var core = "System.Text";//ref namespace
            var pathconifg = @"F:\tfs\tfs29\CompoentFactory\Test\Config.cs";//target generate file
            Gh.GenerateConfigSelector(entitypath, np, core, pathconifg,false);
        }
    }
}
